package cn.zzuli.springcloud.service;

import cn.zzuli.commons.entity.CommonResult;
import cn.zzuli.commons.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Date: 2020/12/26 14:31
 * @Author: 绯色下午茶
 * @Description:
 */
@FeignClient(value = "nacos-provider-payment",fallback = PaymentFallbackService.class)
public interface PaymentService {
    @GetMapping("/provider/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id") long id);
}
